package com.foodchain.entity;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName 活动报名用户
 * @Description TODO
 * @Author duyuanyuan
 * @Date 2019/3/1215:28
 * @Version 1.0
 **/
@Entity
@Data
@Table(name = "activity_user")
public class ActivityUser implements Serializable {

    private static final long serialVersionUID = -155899347755839412L;
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid",strategy = "uuid")
    private String  id;

    @Column(name = "activity_id")
    private String activityId;

    @Column(name = "activity_name")
    private String activityName;

    @Column(name = "activity_img")
    private String activityImg;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "user_phone")
    private String userPhone;

    @Column(name = "user_name")
    private String userName;

    @Column(name = "user_work")
    private String userWork;

    @Column(name = "user_position")
    private String userPosition;

    @Column(name = "user_number")
    private String userNumber;

    @Column(name = "user_id_number")
    private String userIdNumber;

    @Column(name = "user_points")
    private String userPoints;

    @Column(name = "user_status")
    private Integer userStatus;

    @Column(name = "user_email")
    private String userEmail;

    @Column(name = "create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Column(name = "classify")
    private Integer classify; // 0、德州，1、双升
}
